<?xml version="1.0" encoding="UTF-8"?>
<ui:composition template="template.xhtml"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:t="http://myfaces.apache.org/tomahawk"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:s="http://myfaces.apache.org/sandbox"
                xmlns:jwork="http://irian.at/jsfatwork"
                xmlns:c="http://java.sun.com/jsp/jstl/core"
        >
    <ui:define name="content">
        <h:form id="cform">
            <h3>Task Step 1</h3>
            <h:panelGrid columns="3">
                <jwork:inputText entity="#{taskBean.entity}" property="name" size="30"/>

                <jwork:inputText entity="#{taskBean.entity}" property="description" size="30"/>

                <h:outputLabel for="status" value="status" />
                <h:selectOneMenu id="status" value="#{taskBean.entity.status}" converter="TaskStatusEnumConverter">
                    <s:selectItems var="v" itemValue="#{v.value}" itemLabel="#{v.value}" value="#{taskBean.taskStatusSelectItems}" />
                </h:selectOneMenu>
                <h:message for="status" styleClass="warning" />
                
                <h:panelGroup />
                <h:panelGroup>
                    <div class="buttons">
                        <h:commandLink styleClass="positive" action="/task2.xhtml" actionListener="#{taskBean.validate}" >
                            <img src="images/bullet_go.png" alt=""/>
                            Next step
                        </h:commandLink >
                    </div>
                </h:panelGroup>
            </h:panelGrid>
        </h:form>
    </ui:define>
</ui:composition>
